package com.hx.test.repository;

import com.hx.test.domain.Role;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RoleRepository extends JpaRepository<Role,String> {
    @EntityGraph(value = "Role.Graph", type = EntityGraph.EntityGraphType.FETCH)
    List<Role> findAll();
}
